﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;

namespace GameClient
{
    enum C2G_Protocal
    {
        c2g_ping_signal,
        c2g_handshake_request,
        c2g_account_login_request,

        c2g_protocal_totol
    };

    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct C2G_PING_SIGNAL
    {
        public int nProtocal;
    };

    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct C2G_HANDSHAKE_REQUEST
    {
        public int nProtocal;
    };

    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct C2G_ACCOUNT_LOGIN_REQUEST
    {
        public byte     nProtocal;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 33)]
        public byte[]   szAccount;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 33)]
        public byte[]   szPassword;
    };
}
